package struts.util;

public class StringUtil {
	public static boolean isBlank(String str) {
		return str == null || "".equals(str);
	}
	/**
	 * 查询该字符串中是否存在某字符
	 * 
	 * @param strings
	 * @param str
	 * @return
	 */
	public static boolean checkeStr(String strings, String str) {
		if (strings.indexOf(str) <= 0) {
			return false;
		}
		return true;
	}

	/**
	 * concat array String by 任何符号
	 * 
	 * @param strings
	 * @param str
	 * @return
	 */
	public static String[] getStringArrayByChar(String strings, String str) {
		String[] list = strings.split(str);
		for (int i = 0; i < list.length; i++) {
			if (list[i].contains("'"))
				list[i] = list[i].replace("'", "");
		}
		return list;
	} 
	
	
}
